package com.hk.domain.entity;

import lombok.Getter;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author: dpb
 * @date: 2022/11/29
 */
public class Data {

    @Getter
    private static int counter = 0;

    @Getter
    static AtomicInteger count = new AtomicInteger(0);

    public static int reset() {
        count.set(0);
        return count.get();
    }

    public  void wrong() {
        count.incrementAndGet();
    }

}
